package com.example.blades.myalarmservice;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

public class NotifyService extends Service {

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onCreate() {
        AlarmServiceActivity app=AlarmServiceActivity.getApp();
        app.btnEvent("From NotifyService");
        Toast.makeText(this,"这是系统自带的Service",Toast.LENGTH_LONG).show();
    }

}
